package books.ThinkingInJava.src.Chapter11;

import books.ThinkingInJava.src.Tools.Output;

import java.util.*;

public class TestSet {
    public static void main(String[] args) {
        Random rand = new Random();
        Set<Double> se = new HashSet<>();
        se = new TreeSet<>();
        se = new LinkedHashSet<>();
        for (int i = 0; i < 50; i++) {
            se.add(new Double(rand.nextInt(10)));
        }

        Output.println(se.size());
        Output.println(se);
        Output.println(se.contains(new Double(11)));
    }
}
